package com.tz.hotelmanager.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.alibaba.fastjson.JSONObject;
import com.tz.hotelmanager.mapper.impl.ThemeMapperImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@RestController()
@RequestMapping("/theme/")
public class ThemeController {
  @Autowired
  ThemeMapperImpl themeMapperImpl;


  @PostMapping(value="getTheme")
  public String getTheme(@RequestBody JSONObject jsonparm, HttpServletRequest request, HttpSession session) {
      //TODO: process POST request
      JSONObject result =new JSONObject();
      result.put("DSDS", 123);
      return result.toJSONString();
  }
  @PostMapping(value="addTheme")
  public String addTheme(@RequestBody JSONObject jsonparm, HttpServletRequest request, HttpSession session) {
      //TODO: process POST request
      JSONObject result =new JSONObject();
      result.put("DSDS", 123);
      return result.toJSONString();
  }
  @PostMapping(value="delTheme")
  public String delTheme(@RequestBody JSONObject jsonparm, HttpServletRequest request, HttpSession session) {
      //TODO: process POST request
      JSONObject result =new JSONObject();
      result.put("DSDS", 123);
      return result.toJSONString();
  }
  @PostMapping(value="updateTheme")
  public String updateTheme(@RequestBody JSONObject jsonparm, HttpServletRequest request, HttpSession session) {
      //TODO: process POST request
      JSONObject result =new JSONObject();
      result.put("DSDS", 123);
      return result.toJSONString();
  }
}